home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000263_news@newsmaster….columbia.edu _Sat Aug 30 04:41:12 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id EAA27602
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sat, 30 Aug 1997 04:41:12 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id EAA27195
  7.     for kermit.misc@watsun; Sat, 30 Aug 1997 04:41:11 -0400 (EDT)
  8. Path: news.columbia.edu!panix!howland.erols.net!news.maxwell.syr.edu!eerie.fr!oleane!calvacom!not-for-mail
  9. From: do11@calva.net (Dominique Ottello)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: read \&c[1] does not change the value of the array element
  12. Date: Sat, 30 Aug 1997 08:36:02 GMT
  13. Organization: PCatHome&Me
  14. Lines: 29
  15. Message-ID: <3405a590.4114629@news.calvacom.fr>
  16. Reply-To: do11@calva.net
  17. NNTP-Posting-Host: par12.calvacom.fr
  18. Mime-Version: 1.0
  19. Content-Type: text/plain; charset=us-ascii
  20. Content-Transfer-Encoding: 7bit
  21. X-Newsreader: Forte Agent 1.5/32.451
  22. Xref: news.columbia.edu comp.protocols.kermit.misc:7580
  23.  
  24. Hello, it seems there is a problem with read {array element} with MS-DOS
  25. Kermit 3.15
  26.  
  27. The command for \%i 1 4 1 {read \&c[\%i]} does not change the content of
  28. the array element, the command for \%i 1 4 1 {read \%a,assign \&c[\%i] \%a}
  29. does
  30.  
  31. Comments please.
  32.  
  33. Best regards,
  34.  
  35. for \%i 1 4 1 {assign \&c[\%i] Line \%i}
  36. for \%i 1 4 1 {Echo {Must be Line : \&c[\%i]}}
  37. echo
  38. open write ENTRYPTS.DAT
  39. for \%i 1 4 1 {write file Line \%i\13\10}
  40. close write-file
  41. ;
  42. for \%i 1 4 1 {assign \&c[\%i] Test \%i}
  43. for \%i 1 4 1 {Echo {Must be Test : \&c[\%i]}}
  44. echo
  45. open read ENTRYPTS.DAT
  46. for \%i 1 4 1 {read \&c[\%i]}
  47. close read-file
  48. for \%i 1 4 1 {Echo {Must be Line : \&c[\%i]}}
  49. echo
  50.  
  51.  
  52. == Dominique Ottello == do11@calva.net == Paris == France ==